<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>首页</title>

<!--    看板娘-->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">

    <link rel="stylesheet" href="../static/css/homepage.css" th:href="@{/css/homepage.css}">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
</head>
<body>

<!--导航-->
<nav class="ui inverted attached segment" th:replace="fragments::menu(1)">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu hp-padded-tb-mini">
            <h2 class="ui teal header item">Blog</h2>
            <a href="#"class="nav-item item hp-mobile-hide active"><i class="home icon"></i>首页</a>
            <a href="#"class="nav-item item hp-mobile-hide"><i class="idea icon"></i>分类</a>
            <a href="#"class="nav-item item hp-mobile-hide"><i class="tags icon"></i>标签</a>
            <a href="#"class="nav-item item hp-mobile-hide"><i class="clone icon"></i>归档</a>
            <a href="#"class="nav-item item hp-mobile-hide"><i class="info icon"></i>关于我</a>
            <div class="nav-item right item hp-mobile-hide">
                <div class="ui icon input transparent inverted">
                    <input type="text" placeholder="Search....">
                    <i class="search link icon"></i>
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui icon black button hp-nav-list-mobile hp-sidebar-hide" id="nav-sidebar">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--中间部分-->
<div class="hp-padded-tb-large hp-container">
    <div class="ui container">
        <div class="ui stackable grid hp-opacity-small">
<!--            左边布局-->
            <div class="eleven wide column">
<!--                header -->
                <div class="ui top attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <h3 class="ui teal header">博客</h3>
                        </div>
                        <div class="column right aligned">
                            共 <h3 class="ui orange header hp-inline-block hp-text-thin" th:text="${page.totalElements}"> 14 </h3> 篇
                        </div>
                    </div>
                </div>
<!--                content-->
                <div class="ui attached segment">
                    <div class="ui padded vertical segment hp-padded-tb-large" th:each="blog:${page.content}">
                        <div class="ui middle aligned mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" class="hp-black" th:text="${blog.title}">你真的理解什么是财富自由吗?</a></h3>
                                <p class="hp-text" th:text="|${blog.description}......|">正确做好任何一件事情的前提是清晰，正确的理解目标，而事实是，我们很多人很多时候根本没有
                                对目标正确的定义，甚至根本从来就没有想过，只是大家都那么做而已......
                                </p>
                                <div class="ui grid">
                                    <div class="eleven wide column">
                                        <div class="ui horizontal link list">
                                            <div class="item">
                                                <img src="https://unsplash.it/100/100/?random" th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                                <div class="content"><a href="#" class="header" th:text="${blog.user.nickname}">Mrbear</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd HH:mm')}">2020-06-12</span>
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i><span th:text="${blog.views}">123</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="five wide column right aligned">
                                        <a href="#" th:href="@{/types/{id}(id=${blog.type.id})}" class="ui teal basic label hp-text-thin" th:text="${blog.type.name}">认知升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column dt-opacity-mini">
                                <a href="#" th:href="@{/blog/{id}(id=${blog.id})}">
                                    <img src="https://unsplash.it/800/450/?random" th:src="@{${blog.firstPicture}}" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <!--/*-->
                    <div class="ui padded vertical segment hp-padded-tb-large">
                        <div class="ui mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗?</h3>
                                <p class="hp-text">正确做好任何一件事情的前提是清晰，正确的理解目标，而事实是，我们很多人很多时候根本没有
                                    对目标正确的定义，甚至根本从来就没有想过，只是大家都那么做而已......
                                </p>
                                <div class="ui grid">
                                    <div class="eleven wide column">
                                        <div class="ui horizontal link list">
                                            <div class="item">
                                                <img src="https://unsplash.it/100/100/?random" alt="" class="ui avatar image">
                                                <div class="content"><a href="#" class="header">Mrbear</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i>2020-06-12
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i>123
                                            </div>
                                        </div>
                                    </div>
                                    <div class="five wide column right aligned">
                                        <a href="#" target="_blank" class="ui teal basic label hp-text-thin">认知升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://unsplash.it/800/450/?random" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui padded vertical segment hp-padded-tb-large">
                        <div class="ui mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗?</h3>
                                <p class="hp-text">正确做好任何一件事情的前提是清晰，正确的理解目标，而事实是，我们很多人很多时候根本没有
                                    对目标正确的定义，甚至根本从来就没有想过，只是大家都那么做而已......
                                </p>
                                <div class="ui grid">
                                    <div class="eleven wide column">
                                        <div class="ui horizontal link list">
                                            <div class="item">
                                                <img src="https://unsplash.it/100/100/?random" alt="" class="ui avatar image">
                                                <div class="content"><a href="#" class="header">Mrbear</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i>2020-06-12
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i>123
                                            </div>
                                        </div>
                                    </div>
                                    <div class="five wide column right aligned">
                                        <a href="#" target="_blank" class="ui teal basic label hp-text-thin">认知升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://unsplash.it/800/450/?random" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui padded vertical segment hp-padded-tb-large">
                        <div class="ui mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗?</h3>
                                <p class="hp-text">正确做好任何一件事情的前提是清晰，正确的理解目标，而事实是，我们很多人很多时候根本没有
                                    对目标正确的定义，甚至根本从来就没有想过，只是大家都那么做而已......
                                </p>
                                <div class="ui grid">
                                    <div class="eleven wide column">
                                        <div class="ui horizontal link list">
                                            <div class="item">
                                                <img src="https://unsplash.it/100/100/?random" alt="" class="ui avatar image">
                                                <div class="content"><a href="#" class="header">Mrbear</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i>2020-06-12
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i>123
                                            </div>
                                        </div>
                                    </div>
                                    <div class="five wide column right aligned">
                                        <a href="#" target="_blank" class="ui teal basic label hp-text-thin">认知升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://unsplash.it/800/450/?random" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui padded vertical segment hp-padded-tb-large">
                        <div class="ui mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗?</h3>
                                <p class="hp-text">正确做好任何一件事情的前提是清晰，正确的理解目标，而事实是，我们很多人很多时候根本没有
                                    对目标正确的定义，甚至根本从来就没有想过，只是大家都那么做而已......
                                </p>
                                <div class="ui grid">
                                    <div class="eleven wide column">
                                        <div class="ui horizontal link list">
                                            <div class="item">
                                                <img src="https://unsplash.it/100/100/?random" alt="" class="ui avatar image">
                                                <div class="content"><a href="#" class="header">Mrbear</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i>2020-06-12
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i>123
                                            </div>
                                        </div>
                                    </div>
                                    <div class="five wide column right aligned">
                                        <a href="#" target="_blank" class="ui teal basic label hp-text-thin">认知升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://unsplash.it/800/450/?random" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <!--*/-->
                </div>
<!--                footer-->
                <div class="ui bottom attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <a href="#" th:if="${page.first}" th:href="@{/(page=${page.number})}" class="ui mini teal basic button">上一页</a>
                            <a href="#" th:if="!${page.first}" th:href="@{/(page=${page.number}-1)}" class="ui mini teal basic button">上一页</a>
                        </div>
                        <div class="column right aligned">
                            <a href="#" th:if="!${page.last}" th:href="@{/(page=${page.number}+1)}" class="ui mini teal basic button">下一页</a>
                            <a href="#" th:if="${page.last}" th:href="@{/(page=${page.number})}" class="ui mini teal basic button">下一页</a>
                        </div>
                    </div>
                </div>
            </div>
<!--            右边布局-->
            <div class="five wide column">
<!--                分类-->
                <div class="ui segments">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column teal ">
                                <i class="idea icon"></i>分类
                            </div>
                            <div class="column right aligned teal ">
                                <a href="#" th:href="@{/types/-1}" style="color: springgreen">more <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui segment">
                        <div class="ui vertical menu fluid">
                            <a href="#" th:href="@{/types/{id}(id=${type.id})}" class="item" th:each="type:${types}">
                                <span th:text="${type.name}">学习日志</span>
                                <div class="ui teal basic left pointing label" th:text="${#arrays.length(type.blogs)}">13</div>
                            </a>
                            <!--/*-->
                            <a href="#" class="item">学习日志
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">学习日志
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">学习日志
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">学习日志
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <!--*/-->
                        </div>
                    </div>
                </div>
<!--                标签-->
                <div class="ui segments hp-margin-top-large">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column teal ">
                                <i class="tags icon"></i>标签
                            </div>
                            <div class="column right aligned teal ">
                                <a href="#" th:href="@{/tags/-1}" style="color: springgreen">more <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui segment">
                        <a href="#" th:href="@{/tags/{id}(id=${tag.id})}" class="ui teal basic left pointing label hp-margin-tb-tiny" th:each="tag:${tags}">
                            <span th:text="${tag.name}">方法论</span>
                            <div class="detail" th:text="${#arrays.length(tag.blogs)}">23</div>
                        </a>
                        <!--/*-->
                        <a href="#" target="_blank" class="ui teal basic left pointing label hp-margin-tb-tiny">方法论
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label hp-margin-tb-tiny">方法论
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label hp-margin-tb-tiny">方法论
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label hp-margin-tb-tiny">方法论
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label hp-margin-tb-tiny">方法论
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label hp-margin-tb-tiny">方法论
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label hp-margin-tb-tiny">方法论
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label hp-margin-tb-tiny">方法论
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label hp-margin-tb-tiny">方法论
                            <div class="detail">23</div>
                        </a>
                        <!--*/-->
                    </div>
                </div>
<!--                最新推荐-->
                <div class="ui segments hp-margin-top-large">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column teal ">
                                <i class="bookmark icon"></i>最新推荐
                            </div>
                            <div class="column right aligned teal ">
                            </div>
                        </div>
                    </div>
                    <div class="ui segment" th:each="reBlog:${recommendBlogs}">
                        <a href="#" th:href="@{/blog/{id}(id=${reBlog.id})}" target="_blank" class="hp-black" th:text="${reBlog.title}">用户故事 （User Story）</a>
                    </div>
                    <!--/*-->
                    <div class="ui segment">
                        <a href="#" target="_blank" class="hp-black">用户故事 （User Story）</a>
                    </div>
                    <div class="ui segment">
                        <a href="#" target="_blank" class="hp-black">用户故事 （User Story）</a>
                    </div>
                    <div class="ui segment">
                        <a href="#" target="_blank" class="hp-black">用户故事 （User Story）</a>
                    </div>
                    <div class="ui segment">
                        <a href="#" target="_blank" class="hp-black">用户故事 （User Story）</a>
                    </div>
                    <!--*/-->
                </div>
<!--                二维码-->
                <h4 class="ui horizontal divider header hp-margin-top-large">扫码关注我
                </h4>
                <div class="ui centered card" style="width: 10em">
                    <img src="../static/images/wechat.jpg" th:src="@{/images/wechat.jpg}" alt="" class="ui rounded image">
                </div>
            </div>
        </div>
    </div>
</div>
<br><br>

<!--底部-->
<footer class="ui inverted vertical segment hp-padded-tb-massive" th:replace="fragments::footer">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/wechat.jpg" th:src="@{/images/wechat.jpg}" class="ui rounded image" style="width: 110px" alt="">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header hp-text-thin hp-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事 （User Story）</a>
                    <a href="#" class="item">用户故事 （User Story）</a>
                    <a href="#" class="item">用户故事 （User Story）</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header hp-text-thin hp-text-spaced">联系我们</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">Email:1402998477@qq.com</a>
                    <a href="#" class="item">QQ:1402998477</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header hp-text-thin hp-text-spaced">Mrbear</h4>
                <p class="hp-text-thin hp-text-spaced hp-opacity-mini">这是我的个人博客、会分享关于编程、写作、思考相关的内容，希望可以给来到这儿的人有所帮助...</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="hp-text-thin hp-text-spaced hp-opacity-mini">Copyright ©2019-2022 Mrbear Designed By Mrbear</p>
    </div>
</footer>

<th:block th:replace="fragments::script"></th:block>
<script>
    $('#nav-sidebar').click(function () {
        $('.nav-item').toggleClass('hp-mobile-hide');
    });
</script>
<!--看板娘-->
<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget/autoload.js"></script>

<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>
<script>
    L2Dwidget.init({
        "model": {
            //jsonpath控制显示那个小萝莉模型，
            //(切换模型需要改动)
//				"https://unpkg.com/(live2d-widget-model-koharu)@1.0.5/assets/(koharu).model.json"
            jsonPath: "https://unpkg.com/live2d-widget-model-hijiki@1.0.5/assets/hijiki.model.json",
            "scale": 1
        },
        "display": {
            "position": "right", //看板娘的表现位置
            "width": 150,  //小萝莉的宽度
            "height": 300, //小萝莉的高度
            "hOffset": 0,
            "vOffset": -20
        },
        "mobile": {
            "show": true,
            "scale": 0.5
        },
        "react": {
            "opacityDefault": 0.7,
            "opacityOnHover": 0.2
        }
    });
</script>

</body>
</html>